package cn.itsy.utils;

import java.util.Date;


public class Syslog {
    private String id;//操作日志ID

    private Date visitTime;//访问时间

    private String username;//操作者用户名

    private String ip;//访问ip

    private String url;//访问资源url

    private long executionTime;//执行时长

    private String method;//访问方法


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    public Date getVisitTime() {
        return visitTime;
    }

    public void setVisitTime(Date visitTime) {
        this.visitTime = visitTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public long getExecutionTime() {
        return executionTime;
    }

    public void setExecutionTime(long executionTime) {
        this.executionTime = executionTime;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    @Override
    public String toString() {
        return "Syslog{" +
                "id='" + id + '\'' +
                ", visitTime=" + visitTime +
                ", username='" + username + '\'' +
                ", ip='" + ip + '\'' +
                ", url='" + url + '\'' +
                ", executionTime='" + executionTime + '\'' +
                ", method='" + method + '\'' +
                '}';
    }
}